import request from '@utils/request'
// 请求 所有分类接口
const fetchCates = (params = {}) => request.get('/shop/goods/category/all', { params })
// 请求首页banner
const fetchHomeBanner = (params = {}) => request.get('/banner/list', { params })
// 请求商品列表
const fetchItems = (params = {}) => request.post('/shop/goods/list', params)
// 请求商品详情
const fetchItemDetail = (id) => request.get('/shop/goods/detail', { params: { id } })
export {
  fetchCates,
  fetchHomeBanner,
  fetchItems,
  fetchItemDetail
}
